NAME = userregister
TAG= 0.0.1
INSTANCE = userregister
DBINSTANCE = userdb

default: docker

docker:
	docker build -t $(NAME):$(TAG) .

run:
	docker run  --name $(INSTANCE) --link userdb -p 8002:8002 -e MYSQL_HOST="$(DBINSTANCE)" -d $(NAME):$(TAG)